How It Works
This enhanced version keeps your five growth archetypes and adds a seeded generator, camera controls, global water sway, and a configurable control panel. You can tune depth, thickness, branch length, and growth speed, then regenerate deterministic reefs with the same seed. A lightweight particle school gives ambient life, and subtle shadows & fog sell the underwater vibe.
- RANDOM_SPREAD: Divergent branching with slight upward bias.
- SPIRAL: Rotational divergence with helical lift.
- SINE_BENT: Direction perturbed by sine functions.
- DOUBLE_HELIX: Paired twisting trajectories.
- WIND_SWAY: Side‑to‑side bias that reads as current.
Performance notes: geometry & materials are reused where possible; updates run only for live branches; renderer uses sRGB output, soft shadows, and exponential fog.